// Application configuration

export const config = {
  // API endpoints
  api: {
    baseUrl: import.meta.env.VITE_API_BASE_URL || '/api',
    timeout: 10000,
  },
  
  // WebSocket configuration
  websocket: {
    url: import.meta.env.VITE_WS_URL || 'ws://localhost:8081/ws',
    reconnectInterval: 3000,
    maxReconnectAttempts: 5,
  },
  
  // Chat configuration
  chat: {
    maxMessageLength: 5000,
    messagesPerPage: 50,
    typingTimeout: 3000,
  },
  
  // UI configuration
  ui: {
    sidebarWidth: 280,
    titlebarHeight: 60,
    tabsWidth: 300,
    clientInfoWidth: 320,
  },
  
  // File upload configuration
  upload: {
    maxFileSize: 10 * 1024 * 1024, // 10MB
    allowedTypes: ['image/jpeg', 'image/png', 'image/gif', 'application/pdf'],
  },
  
  // Development flags
  dev: {
    enableDevTools: import.meta.env.DEV,
    enableMockData: import.meta.env.VITE_ENABLE_MOCK === 'true',
  }
}